#ifndef FHE_PYTHON_PYVALVAR_H
#define FHE_PYTHON_PYVALVAR_H

#include <fhe/core/IVar.h>
#include <boost/python.hpp>

namespace fhe
{
  using namespace core;
  namespace python
  {
    class PyValVar : public IVar
    {
    public:
      PyValVar( const std::string& name, boost::python::object val );
      
      std::string name() const;
      Val get() const;
      void set( Val val );
      bool trySet( Val val );
      
    private:
      std::string name_;
      Val val_;
    };
  }
}

#endif
